Creating a Secure SFTP Server with Chroot on Ubuntu 22.04
Theconceptofachrootissimple.Itjustchangestherootdirectoryoftheunixfilesystemtoadifferentone,justforwhatevercommandyouchoosetorunin ...,Thechrootcommandswitchessothatnowyouarerunningcommandsasif/dev/sda1ismountedat/orroot,assuming/dev/sda1isavalid...。參考影片的文章的如下: